home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
C-D
/
DeveloperStax.cpt
/
Developer Stack 1.1
/
card_8871.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
44 lines
-- card: 8871 from stack: in.1
-- bmap block id: 0
-- flags: 0000
-- background id: 13187
-- name: ShowScripts
-- part contents for background part 4
----- text -----
4
-- part contents for background part 2
----- text -----
ShowScripts
-- part contents for background part 3
----- text -----
--
--•••by Steve Drazga 12/87•••
--
--This will show the 'edit script' box of any button, field or card you click on while the
--option key is --held down. If you hold the option and shift keys down, it will show the
--script of the background.
--This script should be in the stack script.
on mouseup
if (first word of the name of the target) is "card" ¬
or (first word of the name of the target) is "bkgnd" then
if the optionkey is not down then exit mouseup
end if
if the shiftkey is down then
edit script of this background
else
edit script of target
end if
end mouseup
--
--For this to work on objects that have their own scripts, you should include the following
--script at the beginning.
--
if the optionkey is down then pass mouseup